#!/bin/bash


etc_config=($(ls $HOME/.config/etc))
for i in ${!etc_config[@]}; do
  etc_config[$i]=/etc/"${etc_config[$i]}"
done

sudo mkdir -p /etc/.bak
sudo cp -r ${etc_config[@]} /etc/.bak
sudo rm -rf ${etc_config[@]}
sudo ln -sf $HOME/.config/etc/* /etc/
sudo systemctl enable logid
sudo systemctl restart logid